﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <!-- Press toolbar background -->
    <LinearGradientBrush x:Key="ToolbarBG" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF284292"/>
        <GradientStop Color="#FF2175B8" Offset="0.2"/>
    </LinearGradientBrush>
    <RadialGradientBrush x:Key="PressToolbarBg" GradientOrigin="0.5,0.5" RadiusX="0.25" RadiusY="0.25" >
        <GradientStop Color="LightSteelBlue" Offset="0.0" />
        <GradientStop Color="Transparent" Offset="1.0" />
    </RadialGradientBrush>

    <Style x:Key="LightSteelBlueBorder" TargetType="Border">
        <Setter Property="Background" Value="White"/>
        <Setter Property="BorderBrush" Value="LightSteelBlue"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="CornerRadius" Value="9"/>
    </Style>

    <Style x:Key="BigStellBlueText" TargetType="TextBlock">
        <Setter Property="Foreground" Value="SteelBlue" />
        <Setter Property="FontSize" Value="22" />
    </Style>

    <Style x:Key="MediumSteelBlueText" TargetType="TextBlock">
        <Setter Property="Foreground" Value="SteelBlue" />
        <Setter Property="FontSize" Value="16" />
    </Style>

    <Style x:Key="MediumWhiteText" TargetType="TextBlock">
        <Setter Property="Foreground" Value="#DDD" />
        <Setter Property="FontSize" Value="16" />
    </Style>

    <Style x:Key="SmallSteelBlueText" TargetType="TextBlock">
        <Setter Property="Foreground" Value="SteelBlue" />
        <Setter Property="FontSize" Value="13" />
    </Style>

    <Style x:Key="SmallWhiteText" TargetType="TextBlock">
        <Setter Property="Foreground" Value="White" />
        <Setter Property="FontSize" Value="13" />
    </Style>

    <!-- Toolbar button -->
    <ControlTemplate x:Key="ToolbarButton" TargetType="RadioButton">
        <Grid Height="{TemplateBinding Height}">
            <Border Width="135" x:Name="BgEnabled">
                <TextBlock x:Name="textBlock" Text="{TemplateBinding Content}" Style="{StaticResource MediumWhiteText}" Margin="7" HorizontalAlignment="Center" VerticalAlignment="Center" />
            </Border>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <!--<Setter TargetName="BgEnabled" Property="Background" Value="{StaticResource PressToolbarBg}" />-->
                <Setter TargetName="textBlock" Property="FontWeight" Value="SemiBold" />
                <Setter Property="Cursor" Value="Hand" />
            </Trigger>
            <Trigger Property="IsChecked" Value="True">
                <!--<Setter TargetName="BgEnabled" Property="Background" Value="{StaticResource PressToolbarBg}" />-->
                <Setter TargetName="textBlock" Property="Foreground" Value="White" />
                <Setter TargetName="textBlock" Property="FontWeight" Value="Bold" />
                <Setter Property="Cursor" Value="Hand" />
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <!-- Small toolbar button -->
    <ControlTemplate x:Key="SmallToolbarButton" TargetType="RadioButton">
        <Grid Height="{TemplateBinding Height}">
            <Border Width="60" x:Name="BgEnabled">
                <TextBlock x:Name="textBlock" Text="{TemplateBinding Content}" Style="{StaticResource SmallWhiteText}" Margin="5" HorizontalAlignment="Center" VerticalAlignment="Center" />
            </Border>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <!--<Setter TargetName="BgEnabled" Property="Background" Value="{StaticResource PressToolbarBg}" />-->
                <Setter TargetName="textBlock" Property="FontWeight" Value="SemiBold" />
                <Setter Property="Cursor" Value="Hand" />
            </Trigger>
            <Trigger Property="IsChecked" Value="True">
                <!--<Setter TargetName="BgEnabled" Property="Background" Value="{StaticResource PressToolbarBg}" />-->
                <Setter TargetName="textBlock" Property="FontWeight" Value="Bold" />
                <Setter Property="Cursor" Value="Hand" />
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <!-- Paging button -->
    <ControlTemplate x:Key="PagingButton" TargetType="RadioButton">
        <Grid Height="{TemplateBinding Height}">
            <Border Width="60" x:Name="BgEnabled">
                <TextBlock x:Name="textBlock" Text="{TemplateBinding Content}" Style="{StaticResource SmallSteelBlueText}" Margin="5" HorizontalAlignment="Center" VerticalAlignment="Center" />
            </Border>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter TargetName="textBlock" Property="FontWeight" Value="SemiBold" />
                <Setter Property="Cursor" Value="Hand" />
            </Trigger>
            <Trigger Property="IsChecked" Value="True">
                <Setter TargetName="textBlock" Property="FontWeight" Value="Bold" />
                <Setter Property="Cursor" Value="Hand" />
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>





</ResourceDictionary>